import Vue from 'vue';
import App from './App.vue';
import "./styles/global.less";
import router from './router/index.js';// 路由
import './eventBus.js';//事件总线
import store from './store/index.js';//导入vuex仓库
import showMessage from './utils/showMessage.js';
// 扩展Vue实例，方便别的组件直接通过this.showMessage调用
Vue.prototype.showMessage = showMessage;

import './mock/index.js';//使用mock必须先导入在使用

import vLoading from './directives/directive.js';
import vLazy from './directives/lazy.js';
Vue.directive('loading', vLoading);//全局注册自定义指令
Vue.directive('lazy', vLazy);



new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')


